﻿@{
    ViewBag.Title = "Cloud Storage Light ";
    Layout = "~/Views/Shared/_LayoutWebPart.cshtml";

    RouteValueDictionary queryStringDictionary = new RouteValueDictionary(Request.QueryString.AllKeys.Where(x=>x != null).ToDictionary(key => key, key => (object)Request.QueryString[key]));
}


<div id="login-form-div">
    <h3>@string.Format(CloudStorageLight.Core.Web.ViewMessages.MsgPleaseCredentials, Model)</h3>
    @using (Html.BeginForm(null, null, queryStringDictionary, FormMethod.Post))
    {
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })

        <div class="container">
            @Html.ValidationSummary(true, "", new { @class = "text-danger" })

            <div class="container">

                <div style="margin:20px;">
                    <div class="row-same-height">
                        <span class="col-md-2 control-label">@(CloudStorageLight.Core.Web.ViewMessages.MsgUserName)</span>
                        <div class="col-md-4">
                            @Html.TextBox("user", "", new { @class = "form-control" })
                            @Html.ValidationMessage("user", "", new { @class = "text-danger" })
                        </div>
                    </div>
                    <div class="row-same-height">
                        <span class="col-md-2 control-label">@(CloudStorageLight.Core.Web.ViewMessages.MsgPassword)</span>
                        <div class="col-md-4">
                            @Html.Password("password", "", new { @class = "form-control" })
                            @Html.ValidationMessage("password", "", new { @class = "text-danger" })
                        </div>
                    </div>
                    <div class="row-same-height">
                        <div class="col-md-2">
                        </div>
                        <div class="col-md-4">
                            <button id="login" type="submit" class="primary">
                                @CloudStorageLight.Core.Web.ViewMessages.MsgExecute
                            </button>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    }
</div>



